package com.viewfin.mian.Thread;

//import com.viewfin.mian.strategy.SimpleRunable;
import com.viewfin.common.strategy.Conservative.utils.SimpleRunable_Trade;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;


@Component
public class startBean implements InitializingBean {

    @Override
    public void afterPropertiesSet()  {

//        //获取数据
//        List<Object> lists = new ArrayList<>();
//        //遍历
//        lists.forEach(strategie->{
//
//
//
//
//        });

        SimpleRunable_Trade simpleRunable_trade = new SimpleRunable_Trade(true, 1);

        new Thread(simpleRunable_trade).start();
    }





}
